<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ page language="java" contentType="text/html; charset=UTF-8"
		 pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<!--  教师信息主页  -->
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
	<title>教师主页</title>
	<link href="https://cdn.bootcss.com/bootstrap/3.3.7/css/bootstrap.min.css" rel="stylesheet">
</head>
<body>
<div align="center">
	<jsp:include page="_teacherHomeHead.jsp" />
</div>


<form class="form-horizontal m-t" id="addRoleForm" action="[@ctx/]/sm/role/confirmAdd">
	<div class="container">
		<div class="modal-title">
			随机评分
		</div>
	<table class="table table-bordered">
		<thead>
		<tr>
			<th>学生姓名</th>
			<th>文档名称</th>
			<th>下载文档</th>

		</tr>
		</thead>

		<tbody>
		<c:forEach items="${zzlw }" var="entity" varStatus="loop">
			<c:url value="/teacher/fileDownloadDatalw" var="downUrl">
				<c:param name="filePath" value="${entity.filePath}"></c:param>
			</c:url>
			<c:url value="/teacher/getlwinfozzscore" var="failUrl">
				<c:param name="studentId" value="${entity.studentId}"></c:param>
			</c:url>
			<tr>
				<td>${entity.studentName}</td>
				<td>
					<a href="${failUrl}">${entity.filePath}</a>
				</td>
				<td><a href="${downUrl}">${entity.filePath}</a></td>
			</tr>

		</c:forEach>
		</tbody>
	</table>
	</div>
	<div class="modal-dialog ">
		<div class="modal-content">
			<div class="modal-header">

				<div class="modal-title">
					教师信息
				</div>
			</div>
			<div class="modal-body">
				<div class="form-group form-group-sm">
					<label class="col-sm-3 control-label">教师编号：</label>
					<div class="col-sm-8">
						<input name="name" disabled minlength="2" type="text" value="${sessionScope.teacher.teacherNo}" class="form-control" required="">
					</div>
				</div>
				<div class="form-group form-group-sm">
					<label class="col-sm-3 control-label">姓名：</label>
					<div class="col-sm-8">
						<input name="key" minlength="2" disabled type="text" class="form-control" value="${sessionScope.teacher.teacherName}" required="">
					</div>
				</div>
				<div class="form-group form-group-sm">
					<label class="col-sm-3 control-label">性别:</label>
					<div class="col-sm-8">
						<input name="key" minlength="2" disabled  type="text" class="form-control" value="${sessionScope.teacher.sex}" required="">
					</div>
				</div>
				<div class="form-group form-group-sm">
					<label class="col-sm-3 control-label">院系:</label>
					<div class="col-sm-8">
						<input name="key" minlength="2" disabled type="text" class="form-control" value="${sessionScope.teacher.departmentName}" required="">
					</div>
				</div>
				<div class="form-group form-group-sm">
					<label class="col-sm-3 control-label">联系方式:</label>
					<div class="col-sm-8">
						<input name="key" minlength="2" disabled type="text" class="form-control" value="${sessionScope.teacher.phone}" required="">
					</div>
				</div>

			</div>

		</div>
	</div>
</form>



</body>
</html>